#pragma once
#include "Runtime/BattleFirePrefix.h"
namespace Alice{
    class WindowsPlatformMemory{
    public:
        /**
        * Loads a simple POD type from unaligned memory.
        *
        * @param Ptr unaligned memory of at least size sizeof(T)
        * @return Value at Ptr
        */
        template <typename T>
        static FORCEINLINE T ReadUnaligned(const void* Ptr)
        {
            T AlignedT;
            memcpy(&AlignedT, Ptr, sizeof(T));
            return AlignedT;
        }
    };
    typedef WindowsPlatformMemory PlatformMemory;
}